package com.baibei.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

public class LastPriceInfo implements Serializable,Parcelable{

    /**
     * quoteName : 今日铜价
     * worthPrice : 1
     * upCount : null
     * couponType : null
     * productPic : null
     * lastPrice : 42120.00
     * endTime : 1688054400000
     * remainCount : null
     * productId : 403
     * closePrice : 42315.00
     * fee : 0
     * startTime : null
     * detailPic : null
     * ticketId : null
     * price : 0
     * area : LMCADS03
     * areaName : null
     * name : 铜
     * ccNum : null
     * repertoryStatus : 充足
     */

    private String quoteName;
    private int worthPrice;
    private Object upCount;
    private Object couponType;
    private Object productPic;
    private String lastPrice;
    private long endTime;
    private Object remainCount;
    private int productId;
    private String closePrice;
    private int fee;
    private Object startTime;
    private Object detailPic;
    private Object ticketId;
    private int price;
    private String area;
    private Object areaName;
    private String name;
    private Object ccNum;
    private String repertoryStatus;

    protected LastPriceInfo(Parcel in) {
        quoteName = in.readString();
        worthPrice = in.readInt();
        lastPrice = in.readString();
        endTime = in.readLong();
        productId = in.readInt();
        closePrice = in.readString();
        fee = in.readInt();
        price = in.readInt();
        area = in.readString();
        name = in.readString();
        repertoryStatus = in.readString();
    }

    public static final Creator<LastPriceInfo> CREATOR = new Creator<LastPriceInfo>() {
        @Override
        public LastPriceInfo createFromParcel(Parcel in) {
            return new LastPriceInfo(in);
        }

        @Override
        public LastPriceInfo[] newArray(int size) {
            return new LastPriceInfo[size];
        }
    };

    public String getQuoteName() {
        return quoteName;
    }

    public void setQuoteName(String quoteName) {
        this.quoteName = quoteName;
    }

    public int getWorthPrice() {
        return worthPrice;
    }

    public void setWorthPrice(int worthPrice) {
        this.worthPrice = worthPrice;
    }

    public Object getUpCount() {
        return upCount;
    }

    public void setUpCount(Object upCount) {
        this.upCount = upCount;
    }

    public Object getCouponType() {
        return couponType;
    }

    public void setCouponType(Object couponType) {
        this.couponType = couponType;
    }

    public Object getProductPic() {
        return productPic;
    }

    public void setProductPic(Object productPic) {
        this.productPic = productPic;
    }

    public String getLastPrice() {
        return lastPrice;
    }

    public void setLastPrice(String lastPrice) {
        this.lastPrice = lastPrice;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    public Object getRemainCount() {
        return remainCount;
    }

    public void setRemainCount(Object remainCount) {
        this.remainCount = remainCount;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public String getClosePrice() {
        return closePrice;
    }

    public void setClosePrice(String closePrice) {
        this.closePrice = closePrice;
    }

    public int getFee() {
        return fee;
    }

    public void setFee(int fee) {
        this.fee = fee;
    }

    public Object getStartTime() {
        return startTime;
    }

    public void setStartTime(Object startTime) {
        this.startTime = startTime;
    }

    public Object getDetailPic() {
        return detailPic;
    }

    public void setDetailPic(Object detailPic) {
        this.detailPic = detailPic;
    }

    public Object getTicketId() {
        return ticketId;
    }

    public void setTicketId(Object ticketId) {
        this.ticketId = ticketId;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public Object getAreaName() {
        return areaName;
    }

    public void setAreaName(Object areaName) {
        this.areaName = areaName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Object getCcNum() {
        return ccNum;
    }

    public void setCcNum(Object ccNum) {
        this.ccNum = ccNum;
    }

    public String getRepertoryStatus() {
        return repertoryStatus;
    }

    public void setRepertoryStatus(String repertoryStatus) {
        this.repertoryStatus = repertoryStatus;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(quoteName);
        parcel.writeInt(worthPrice);
        parcel.writeString(lastPrice);
        parcel.writeLong(endTime);
        parcel.writeInt(productId);
        parcel.writeString(closePrice);
        parcel.writeInt(fee);
        parcel.writeInt(price);
        parcel.writeString(area);
        parcel.writeString(name);
        parcel.writeString(repertoryStatus);
    }
}
